class Feed::InstallItemInstalled < Feed
  
  validates :order_id,
    :order_item_id,
    :installation_id,
    :install_item_id,
    :furniture_logistic_stat_order_item_id,
    :presence => true  
    
  def code
    ActiveSupport::StringInquirer.new('has_been_installed')
  end
  
  def short_desc
    "#{installation.installer.full_name}于#{installation.installed_on}上门<b>完成安装</b>【#{furniture_logistic_stat_order_item.furniture_logistic_stat.dept.name} => #{install_item.has_been_sent_to_installer_count}件】"
  end
  
  def remark
    install_item.remark
  end
end